package com.progark.sound.main;

import sheep.game.Game;
import android.app.Activity;
import android.os.Bundle;
import android.view.Display;

import com.progark.sound.controller.MenuController;

public class MainApp extends Activity{

	@Override
	public void onCreate(Bundle savedInstanceState){
		super.onCreate(savedInstanceState);
				
		Game game = new Game(this, null);
		Display display = getWindowManager().getDefaultDisplay();
		Constants.HEIGHT = display.getHeight();
		Constants.WIDTH = display.getWidth();
//		Push the main state.
		MenuController menucontroller = new MenuController(getResources());
		game.pushState(menucontroller);
//		View the game.
		setContentView(game);
	}
	
	@Override
	public void onSaveInstanceState(Bundle savedInstanceState) {
	    super.onSaveInstanceState(savedInstanceState);
	}
	
	@Override
	public void onRestoreInstanceState(Bundle savedInstanceState) {
	    super.onRestoreInstanceState(savedInstanceState);
	}
	@Override
	protected void onPause() {
		// TODO Auto-generated method stub
		super.onPause();
	}
	
	@Override
	protected void onResume() {
		// TODO Auto-generated method stub
		super.onResume();
	}

}
